<?php

class PaymentTtPreAction extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_STRING,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_STRING,
        SzAbstractAction::TYPE_INT,
    );

    public function execute($userId,$type,$indexId,$count,$platform,$reqTime) {
        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);
        $version =  $_REQUEST['version'] ? $_REQUEST['version'] : '';
        return $this->buildResponse(
            PayTtService::get()->ttRechargePre($userId,$type,$indexId,$count,$platform,$reqTime,$version)
        );
    }
}